/** @format */

// http://10.0.0.211:8080/job/lyhms-ui-10070/build?token=ed55c461-c89b-4739-a0fc-b8fd54c975f8
const axios = require('axios')
const autoBuild = () => {
    const req = axios.create({})
    req.get('http://10.0.0.211:8080/job/lyhms-ui-build/build?token=ed55c461-c89b-4739-a0fc-b8fd54c975f8', { timeout: 5000 })
        .then(res => {
            console.log('[自动构建]: 触发构建成功')
        })
        .catch(() => {
            console.log('[自动构建]: 触发构建失败')
        })
}
exports.autoBuild = autoBuild

// test build
// autoBuild()
